console.log('inject from my browser extensions')

window.addEventListener("beforeunload", function (event) {
  console.log(
    "read localstorage from contentScript",
    JSON.stringify(localStorage)
  );
  event.preventDefault();
  event.returnValue = "";
});